import request from '@/utils/request'

// 查询收费里程实测数据测试列表
export function listTollMileageStatTest(query) {
  return request({
    url: '/functiontest/TollMileageStatTest/list',
    method: 'get',
    params: query
  })
}

// 查询收费里程实测数据测试详细
export function getTollMileageStatTest(id) {
  return request({
    url: '/functiontest/TollMileageStatTest/' + id,
    method: 'get'
  })
}

// 新增收费里程实测数据测试
export function addTollMileageStatTest(data) {
  return request({
    url: '/functiontest/TollMileageStatTest',
    method: 'post',
    data: data
  })
}

// 修改收费里程实测数据测试
export function updateTollMileageStatTest(data) {
  return request({
    url: '/functiontest/TollMileageStatTest',
    method: 'put',
    data: data
  })
}

// 删除收费里程实测数据测试
export function delTollMileageStatTest(id) {
  return request({
    url: '/functiontest/TollMileageStatTest/' + id,
    method: 'delete'
  })
}

// 导出收费里程实测数据测试
export function exportTollMileageStatTest(query) {
  return request({
    url: '/functiontest/TollMileageStatTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditTollMileageStatTestBatch() {
  return request({
    url: '/functiontest/TollMileageStatTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditTollMileageStatTestBatch(data) {
  return request({
    url: '/functiontest/TollMileageStatTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditTollMileageStatTestBatch() {
  return request({
    url: '/functiontest/TollMileageStatTest/centerAudit/batch',
    method: 'post'
  })
}

// 导入收费里程实测数据测试
export function importTollMileageStatTest(data) {
  return request({
    url: '/functiontest/TollMileageStatTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateTollMileageStatTest() {
  return request({
    url: '/functiontest/TollMileageStatTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}
